package com.xinke.query.model.file;

import com.xinke.query.model.entity.BaseData;
import com.xinke.query.model.enums.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "用户json数据表")
@Data
public class ResultFile {
    //总记录数
    private Long totalCount;
    //总组数
    private Integer totalBatchSize;
    //本组记录数
    private Integer batchSize;
    //本组记录号
    private Integer batchNum;
    //查询apply_id
    private String applyId;
    //文件query_type
    private QueryType queryType;
    //文件
    private List<? extends BaseData> fileList;


    public ResultFile() {
    }

    public ResultFile(Long totalCount, Integer totalBatchSize, Integer batchSize, Integer batchNum, String applyId, QueryType queryType, List fileList) {
        this.totalCount = totalCount;
        this.totalBatchSize = totalBatchSize;
        this.batchSize = batchSize;
        this.batchNum = batchNum;
        this.applyId = applyId;
        this.queryType = queryType;
        this.fileList = fileList;
    }
}
